<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        window.addEventListener('resize', function(){
            console.log('00000');
        });
    </script>
</head>
<body>
    <div id="test" style="height: 100px; width: 100px; background-color: red;">
        
    </div>

    <input type="button" value="test" onclick="up();"></input>
    <script>
        function up() {
            window.requestAnimationFrame(()=>{

            });
            document.getElementById('test').style.height='80px';
        }
    </script>
</body>
</html>